package com.czz.portal.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @ClassName: Question
 * @Author Czz
 * @Date 2020/2/13
 * @Time 12:12
 **/
@Data
@TableName(value = "edu_question")
@Accessors(chain = true)
public class Question {
    @TableId(value = "question_id", type = IdType.ID_WORKER_STR)
    private String questionId;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "question_title")
    private String title;

    @TableField(value = "question_tag")
    private String tag;

    @TableField(value = "question_content_id")
    private String contentId;

    @TableField(value = "question_status")
    private Integer status;

    @TableField(value = "question_reply_count")
    private Integer reply;

    @TableField(value = "question_click_count")
    private Integer click;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}
